]> dgit.raspbian.org Git - gnome-shell.git/commit
pieTimer: Use custom GObject property for animating pie
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 21 Aug 2019 14:47:38 +0000 (16:47 +0200)
committerJonas Dreßler <verdre@v0yd.nl>
Wed, 21 Aug 2019 15:14:40 +0000 (17:14 +0200)
commit5cb02c1cb501ac396674995f5480e1f20eab04b8
tree3df5df852ad35cb0a142872b87feccc8ad323286
parent10c1df61cd2f02243634e7f3cd2b663202147547
pieTimer: Use custom GObject property for animating pie

Before the move to Clutters implicit animations with 0846238f6 and
bf497ed64, we used Tweener to do a fake-animation of the opacity and
Tweeners `onUpdate` signal to queue a repaint of the PieTimer everytime
Tweener tries to update the animation.

Now, with Clutters implicit animations, there is no `onUpdate` signal
anymore and also `notify::opacity` no longer gets emitted since the
value doesn't actually change. This lead to the PieTimer no longer being
repainted, which broke the animation.

Fix this by implementing the current angle of the pie using a custom
GObject property `angle` and animating this property using the new
`actor.ease_property` method.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1533
js/ui/pointerA11yTimeout.js